package top.ahzy.seobench.config;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Data
@Component
@ConfigurationProperties(prefix = "aliyun")
public class AliyunConfig {
    private String accessKeyId;
    private String accessKeySecret;
    private DdnsConfig ddns;

    // Getters and Setters

    @Data
    public static class DdnsConfig {
        private String area;
        private List<DomainConfig> domain;

        // Getters and Setters

        @Data
        public static class DomainConfig {
            private String domainName;
            private String subDomain;
            private String recordType;

            // Getters and Setters
        }
    }
}